package com.carrental.entity;

import java.sql.Date;
import java.sql.Timestamp;

//订单
public class CarRental {

    private String id;//订单ID
    private String username;//租车人用户名
    private String carId;//汽车ID
    private int rentalNum;//租赁数量
    private Double rentalTotal;//订单总额
    private Date rentalStartDatetime;//租赁开始时间
    private Date rentalEndDatetime;//租赁结束时间
    private Timestamp createDatetime;//下单时间

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getCarId() {
        return carId;
    }

    public void setCarId(String carId) {
        this.carId = carId;
    }

    public int getRentalNum() {
        return rentalNum;
    }

    public void setRentalNum(int rentalNum) {
        this.rentalNum = rentalNum;
    }

    public Double getRentalTotal() {
        return rentalTotal;
    }

    public void setRentalTotal(Double rentalTotal) {
        this.rentalTotal = rentalTotal;
    }

    public Date getRentalStartDatetime() {
        return rentalStartDatetime;
    }

    public void setRentalStartDatetime(Date rentalStartDatetime) {
        this.rentalStartDatetime = rentalStartDatetime;
    }

    public Date getRentalEndDatetime() {
        return rentalEndDatetime;
    }

    public void setRentalEndDatetime(Date rentalEndDatetime) {
        this.rentalEndDatetime = rentalEndDatetime;
    }

    public Timestamp getCreateDatetime() {
        return createDatetime;
    }

    public void setCreateDatetime(Timestamp createDatetime) {
        this.createDatetime = createDatetime;
    }

    @Override
	public String toString() {
		return "CarRental [id=" + id + ", username=" + username + ", carId=" + carId + ", rentalNum=" + rentalNum
				+ ", rentalTotal=" + rentalTotal + ", rentalStartDatetime=" + rentalStartDatetime
				+ ", rentalEndDatetime=" + rentalEndDatetime + ", createDatetime=" + createDatetime + "]";
	}

}